package com.hzsai.schedule;

import cn.hutool.core.lang.UUID;
import com.hzsai.entity.PushSampleEntity;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author: hzsai
 * @date : 2020/3/17
 * usage:
 **/
public class PushSampleEntityBundleDataGenerator {

    private static final int defaultSize = 1;

    public static List<PushSampleEntity> getBundleData() {
        List<PushSampleEntity> sampleEntities = new ArrayList<>(1000);
        for (int i = 0; i < defaultSize; ++i) {
            sampleEntities.add(new PushSampleEntity(UUID.fastUUID().toString(), LocalDateTime.now()));
        }
//        Stream<PushSampleEntity> entityStream = sampleEntities.stream().map(
//                entity -> PushSampleEntity.tran(UUID.fastUUID().toString(), LocalDateTime.now())
//        );

        return sampleEntities;
    }
}
